function findIndex(arry,targetIndex){
    for(var i in arry){
        if(arry[i].id==targetIndex){
            return i;
        };
    };
};
function findContain(arry,contains,fieldName){
    for(var i in arry){
        if(arry[i][fieldName].indexOf(contains)){
            return i;
        };
    };
};
module.exports = {
  findIndex: findIndex,
  findContain:findContain
}
